<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
class TixianForm extends Model
{
    public $userid;
    public $money;
    public $realname;
    public $name;
    public $bankcardid;
    public $opencardbank;
    public $alipay;
    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['money','userid'], 'required'],
            [['money'],'number','min'=>1],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             'userid'       => '用户ID',
             'money'        =>'提现金额',
             'realname'     =>'姓 名',
             'name'         =>'用 户 名',
             'opencardbank' =>'银行名称',
             'bankcardid'   =>'银行卡号',
             'alipay'       =>'支付宝账号'
         ];
     }

}
